/*
 * @Author: your name
 * @Date: 2021-07-28 18:18:54
 * @LastEditTime: 2021-08-12 17:56:31
 * @LastEditors: GGB
 * @Description: In User Settings Edit
 * @FilePath: \flutter_data_center\lib\model\user_model.dart
 */
class UserModel {
  String phone;
  String password;
  String avatarUrl;
  String nickName;
  String token;

  ///常用用于解析JSON数据
  UserModel.fromMap(Map<String, dynamic> map) {
    this.phone = map["phone"];
    this.password = map["password"];
    this.nickName = map["nickName"];
    this.avatarUrl = map["avatarUrl"];
    this.token = map["token"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> map = new Map<String, dynamic>();
    map["phone"] = this.phone;
    map["password"] = this.password;
    map["avatarUrl"] = this.avatarUrl;
    map["nickName"] = this.nickName;
    map["token"] = this.token;
    return map;
  }
}
